const mongoose = require("mongoose");
const dbURI = "mongodb://127.0.0.1/catEye";

mongoose.connect(dbURI,{
    useNewUrlParser: true,
    useUnifiedTopology: true,
  });

mongoose.connection.on("connected",()=>{
    console.log("数据库连接成功");
})